<?php


namespace app\adminapi\validate\room\department;


use app\common\validate\BaseValidate;


/**
 * 科室设备关联验证器
 * Class RoomDepartmentDeviceValidate
 * @package app\adminapi\validate\room
 */
class RoomDepartmentDeviceValidate extends BaseValidate
{

     /**
      * 设置校验规则
      * @var string[]
      */
      protected $rule = [
        'id' => 'require',

    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id' => 'id',
        'base_number' => '底数',

    ];


    /**
     * @notes 添加场景
     * @return RoomDepartmentDeviceValidate
     * @author likeadmin
     * @date 2024/02/23 10:30
     */
    public function sceneAdd()
    {
        return $this->only(['base_number']);
    }


    /**
     * @notes 编辑场景
     * @return RoomDepartmentDeviceValidate
     * @author likeadmin
     * @date 2024/02/23 10:30
     */
    public function sceneEdit()
    {
        return $this->only(['id','device_sn']);
    }


    /**
     * @notes 删除场景
     * @return RoomDepartmentDeviceValidate
     * @author likeadmin
     * @date 2024/02/23 10:30
     */
    public function sceneDelete()
    {
        return $this->only(['id']);
    }


    /**
     * @notes 详情场景
     * @return RoomDepartmentDeviceValidate
     * @author likeadmin
     * @date 2024/02/23 10:30
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }

}